package com.hardydou.system.service;

import com.hardydou.system.model.SystemRole;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author ：hardy
 * @description：ISystemRoleService
 * @date ：Created in 2020-03-10
 * @Copyright ：Hardydou.com
 */
public interface ISystemRoleService {


    SystemRole findById(Long roleId);


    List<SystemRole> findAll(Map params);


    @Transactional
    int addRole(SystemRole role);


    @Transactional
    int update(SystemRole role);


    int deleteByRoleId(Long roleId);


}
